home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / machserver / 1.098 / mach / ds5000.md / machAddrs.h < prev    next >
C/C++ Source or Header  |  1991-05-08  |  2KB  |  61 lines

  1. /*
  2.  * machAddrs.h --
  3.  *
  4.  *         Addresses to various pieces of the machine.
  5.  *
  6.  *    Copyright (C) 1989 Digital Equipment Corporation.
  7.  *    Permission to use, copy, modify, and distribute this software and
  8.  *    its documentation for any purpose and without fee is hereby granted,
  9.  *    provided that the above copyright notice appears in all copies.
  10.  *    Digital Equipment Corporation makes no representations about the
  11.  *    suitability of this software for any purpose.  It is provided "as is"
  12.  *    without express or implied warranty.
  13.  *
  14.  * $Header: /sprite/src/kernel/mach/ds5000.md/RCS/machAddrs.h,v 1.3 91/05/08 16:24:31 jhh Exp $ SPRITE (DECWRL)
  15.  */
  16.  
  17. #ifndef _MACHADDRS
  18. #define _MACHADDRS
  19.  
  20. #define MACH_KUSEG_ADDR            0x0
  21. #define MACH_CACHED_MEMORY_ADDR        0x80000000
  22. #define MACH_UNCACHED_MEMORY_ADDR    0xa0000000
  23. #define MACH_KSEG2_ADDR            0xc0000000
  24.  
  25. /*
  26.  * IO slot addresses.
  27.  */
  28.  
  29. #define MACH_IO_SLOT_BASE        0xbe000000
  30. #define MACH_IO_SLOT_SIZE        0x400000
  31. #define MACH_IO_SLOT_ADDR(slot)            (MACH_IO_SLOT_BASE + \
  32.                     (MACH_IO_SLOT_SIZE * (slot)))
  33. /*
  34.  * The standard TURBOchannel option information is located at these offsets
  35.  * from the start of the option rom.  See page 13  of the TURBOchannel
  36.  * Hardware Specification.  These offsets must be added to the option rom
  37.  * address, as specified in the documentation for the option.
  38.  */
  39.  
  40. #define MACH_IO_ROM_OFFSET        0x3e0
  41. #define MACH_IO_ROM_INFO_OFFSET        0x400
  42.  
  43. /*
  44.  * Addresses within the system interface (slot 7).
  45.  */
  46.  
  47. #define MACH_ROM_ADDR            MACH_IO_SLOT_ADDR(7)
  48. #define MACH_CHKSYN_ADDR        (MACH_ROM_ADDR + 0x100000)
  49. #define MACH_ERRADR_ADDR        (MACH_ROM_ADDR + 0x180000)
  50. #define MACH_DZ_ADDR            (MACH_ROM_ADDR + 0x200000)
  51. #define MACH_RTC_ADDR            (MACH_ROM_ADDR + 0x280000)
  52. #define MACH_CSR_ADDR            (MACH_ROM_ADDR + 0x300000)
  53.  
  54. /*
  55.  * Other addresses.
  56.  */
  57.  
  58. #define MACH_SERIAL_INTERFACE_ADDR 0x1fe00000    /* Serial interface address. */
  59.  
  60. #endif /* _MACHADDRS */
  61.